﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeuralNetworks
{
    public static class RandomGenerator
    {
        private static Random _random = new Random();

        public static float GenerateConnectionWeigth()
        {
            float v = 0f;

            while (v == 0f || v == 1f || v == -1f)
                //v = ((float)_random.Next(-10, 10) / 10f) * ((float)_random.Next(-10, 10) / 10f) / 2f;
                v = ((float)_random.Next(-10, 10) / 10f);
            
            return v;
        }
    }
}
